//
//  AEConfirmOrderInfosRequest.m
//  AESOLAR_IOS
//
//  Created by Bin Tang on 2024/10/28.
//  Copyright © 2024 Mr.Wang. All rights reserved.
//

#import "AEConfirmOrderInfosRequest.h"
#import "AE_Solar-Swift.h"

@interface AEConfirmOrderInfosRequest ()
@property (nonatomic, strong) NSNumber *receiveType;
@end

@implementation AEConfirmOrderInfosRequest
/// 初始化
/// - Parameter receiveType: 领取状态(0:待领取;1:已领取) 全部 传null
- (instancetype)initWithReceiveType:(NSNumber *)receiveType {
    if (self = [super init]) {
        self.receiveType = receiveType;
    }
    return self;
}


- (NSString *)requestUrl {
    return kAPP_ORDER_INFO_CONFIRM_ORDERS;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodPOST;
}

- (id)requestArgument {
    NSDictionary *params = @{};
    if (self.receiveType) {
        params = @{@"receiveType": self.receiveType};
    }
    NSString *json = [params yy_modelToJSONString];
    NSString *aesStr = [AESCrypt AES128Encrypt:json key:[AEUserCommonInfo getAesKey]];
    return @{@"requestData": aesStr};
}

- (Class)rspClass {
    return [AEMyExchangeModel class];
}

//- (Class)recordsRspClass {
//    return [AEMyExchangeModel class];
//}

@end
